import request from '@/utils/request'

// 查询个人荣誉认定列表
export function listAffirm(query) {
  return request({
    url: '/labour/affirm/list',
    method: 'get',
    params: query
  })
}

// 查询个人荣誉认定详细
export function getAffirm(id) {
  return request({
    url: '/labour/affirm/' + id,
    method: 'get'
  })
}

// 新增个人荣誉认定
export function addAffirm(data) {
  return request({
    url: '/labour/affirm',
    method: 'post',
    data: data
  })
}

// 修改个人荣誉认定
export function updateAffirm(data) {
  return request({
    url: '/labour/affirm',
    method: 'put',
    data: data
  })
}

// 删除个人荣誉认定
export function delAffirm(id) {
  return request({
    url: '/labour/affirm/' + id,
    method: 'delete'
  })
}

// 查询劳动积分项目类型 选择下拉框
export function treeSelectProject(query) {
  return request({
    url: '/labour/project/treeSelectProject',
    method: 'get',
    params: query
  })
}


// 学生下拉框
export function getstudentmanager(parm) {
  return request({
    url: '/labour/affirm/canChooseStuList/' + parm,
    method: 'get'
  })
}
// 获取活动类型及活动等级
export function listTypeGrade() {
  return request({
    url: '/labour/affirm/listTypeGrade',
    method: 'get',
  })
}

// 审核个人荣誉认定
export function auditAffirm(data) {
  return request({
    url: '/labour/affirm/audit',
    method: 'post',
    data: data
  })
}